﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace peonwar
{
    public class ButtonStep : Button
    {
        public ButtonStep(Vector2 position, Texture2D text, int Upgrade) : base(position, text, 0)
        {
            SkillUpGrade = Upgrade;
        }

        public int SkillUpGrade; // type de l'amelioration

        // retourne vrai si l'amelioration maxi a ete atteinte et donc si le bouton dit ete supprimer
        public bool Press(User user, int layernumber)
        {
            return user.Upgrade(layernumber, SkillUpGrade);
        }
    }
}
